<template>
  <div>
    <div style="height: 0px;line-height: 45px"><span>时间：2020-11</span><span style="margin-left: 50px">任务额：1000</span><span style="margin-left: 50px">任务客户数：1000</span></div>
    <el-form ref="form" :model="form" label-width="100px" inline style="margin-top: 50px">
      <el-form-item label="业务员姓名">
        <el-input v-model="temp.name" placeholder="请输入业务员姓名" />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSubmit">筛选</el-button>
      </el-form-item>
    </el-form>
    <el-table
      :data="tableData"
      style="width: 95%;margin-left: 30px"
      border
    >
      <!--      <el-table-column type="expand">-->
      <!--        <template slot-scope="props">-->
      <!--          <el-form label-position="left" inline class="demo-table-expand">-->
      <!--            <el-form-item label="名称" style="display: block">-->
      <!--              <span>{{ props.row.name }}</span>-->
      <!--            </el-form-item>-->
      <!--            <el-form-item label="描述" style="display: block">-->
      <!--              <span>{{ temp.text }}</span>-->
      <!--            </el-form-item>-->
      <!--            <el-form-item label="单价" style="display: block">-->
      <!--              <span>{{ temp.price }}</span>-->
      <!--            </el-form-item>-->
      <!--            <el-form-item label="总销售数量" style="display: block">-->
      <!--              <span>{{ props.row.address }}</span>-->
      <!--            </el-form-item>-->
      <!--          </el-form>-->
      <!--        </template>-->
      <!--      </el-table-column>-->
      <el-table-column
        prop="name"
        label="业务员"
        width="180"
      />
      <el-table-column
        prop="address"
        label="实际完成营销额度"
      />
      <el-table-column
        prop="limitPercent"
        label="完成额度百分比"
      />
      <el-table-column
        prop="man"
        label="已联系客户数"
      />
      <el-table-column
        prop="cusPercent"
        label="客户完成百分比"
      />
      <el-table-column
        label="操作"
        width="180"
      >
        <template slot-scope="scope">
          <el-button type="text">隐藏</el-button>
          <el-button type="text" @click="handleClick(scope.row)">编辑</el-button>
          <el-button type="text">删除</el-button>
        </template>
      </el-table-column>
    </el-table>
    <el-dialog
      :visible.sync="centerDialogVisible"
      title="课程详情"
      left
    >
      <el-form :model="form">
        <el-form-item label="名称" label-width="100px">
          <!--          <el-input v-model="form.name" autocomplete="off" readonly width="120px"></el-input>-->
          {{ form.name }}
        </el-form-item>
        <el-form-item label="描述" label-width="100px" readonly>
          <!--          <el-input v-model="form.text" autocomplete="off" width="150px" readonly />-->
          {{ form.text }}
        </el-form-item>
        <el-form-item label="单价" label-width="100px" readonly>
          <!--          <el-input v-model="form.price" autocomplete="off" width="150px" readonly />-->
          {{ form.price }}
        </el-form-item>
        <el-form-item label="总销售数量" label-width="100px" readonly>
          <!--          <el-input v-model="form.num" autocomplete="off" width="150px" readonly />-->
          {{ form.num }}
        </el-form-item>
      </el-form>
      <span slot="footer">
        <el-button @click="centerDialogVisible = false">确定</el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>

export default {
  name: 'Index',
  data() {
    return {
      value: '',
      value1: '',
      radio: '1',
      centerDialogVisible: false,
      addDialogVisible: false,
      form: {
        region: '1',
        name: '拉拉啦',
        addname: '',
        addnum: '',
        addprice: '',
        addtext: '',
        addSaleNum: '',
        addSaleMan: '',
        num: '100',
        price: '100',
        text: '好东西',
        teacher: ''
      },
      temp: {
        text: 'dsdad',
        price: 'dsda',
        name: ''
      },
      tableData: [{
        name: '冯先生',
        address: '1000',
        cusPercent: '50%',
        man: '1200',
        limitPercent: '147'
      }, {
        name: '李先生',
        address: '2040',
        cusPercent: '50%',
        man: '1200',
        limitPercent: '147'
      }, {
        name: '马先生',
        address: '1',
        cusPercent: '50%',
        man: '1200',
        limitPercent: '147'
      }, {
        name: '张先生',
        address: '222',
        cusPercent: '50%',
        man: '1200',
        limitPercent: '147'
      }]
    }
  }
}
</script>

<style scoped>
</style>

